package com.shen.pojo;

/**
 * Author:shen
 * CreateDate:2020/4/28.
 * Function:
 */
public class User {
    private int id=123;
    private String password="123";

    public User() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", password='" + password + '\'' +
                '}';
    }

    public boolean check(int id,String password){
        if(id==this.id&&password.equals(this.password)){
            return true;
        }else{
            return false;
        }
    }

}
